<?php

use Illuminate\Database\Seeder;

class ArticlesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        for ($i = 0; $i<120; $i++){
            DB::table('articles')->insert([
                'title' => str_random(30),
                'descr' => str_random(100),
                'content' => str_random(500),
                'picture' => rand(1,4).'.jpg',
                'cate_id' => rand(0,1),
                'user_id' => '202',
                'is_del' => rand(0,1),
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s'),
            ]);
        }
    }
}
